using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WPCoco.Tasks
{
    public class EaseBackIn : EaseTask
    {
        public EaseBackIn(FiniteTime task, float overshoot)
            : base(task, new EaseBackInFunction(overshoot))
        {
            this.overshoot = overshoot;
        }

        public EaseBackIn(FiniteTime task)
            : this(task, 1.70158f)
        {

        }

        readonly float overshoot;

        public override Task Clone()
        {
            return new EaseBackIn((FiniteTime)InnerTask.Clone(), overshoot);
        }

        public override Task Reverse()
        {
            return new EaseBackOut((FiniteTime)InnerTask.Reverse(), overshoot);
        }
    }
}
